<?
    /* -*- Mode: PHP5; tab-width: 4; indent-tabs-mode: nil; basic-offset: 4 -*- */
    
    /*********************************************************
    *            --== InArch ==--
    *
    *
    * @author Kulikov Alexey <a.kulikov@gmail.com>
    * @version n/a
    * @copyright essentialmind.com 2005
    *
    *********************************************************/

    /***
    * class ajaxAddNode
    ****
    * This class will create a new node via an AJAX method
    ****
    * @package ajax
    * @author A Kulikov <a.kulikov@gmail.com>
    * @version n/a
    * @copyright essentialmind.com 2005
    ***/
    class ajaxRemoveFromCart extends ajaxAction{

        public function process(){     
        
            $_SESSION['CART']->dropItem((int)$_REQUEST['id']);              
            $this->r->items = $_SESSION['CART']->count();
               
            $this->r->sum  = number_format($_SESSION['CART']->sum(),2,'.','');
            $this->r->discount = $_SESSION['CART']->discount();
            $this->r->total = number_format($_SESSION['CART']->price(),2,'.','');
        }
    }
?>